package com.ssi.mrms.dao;

import java.util.List;

import com.ssi.mrms.dao.Impl.SQLWhere;
import com.ssi.mrms.model.BaseModel;
import com.ssi.mrms.model.DataTableModel;

public interface GenericDAO<T extends BaseModel> {
	public boolean save(T model);

	public boolean delete(Integer id);

	public T findByID(Integer id);

	public List<T> findALL();

	public boolean update(T model);

	public DataTableModel<T> limit(final SQLWhere[] sqlWheres, final String[] sqlOrderBys, int page, int perPage);
}
